package com.hzit.hzb.core.controller;


import com.hzit.hzb.core.pojo.entity.Borrower;
import com.hzit.hzb.core.service.BorrowerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 借款人 前端控制器
 * </p>
 *
 * @author hbxfwf
 * @since 2024-07-17
 */
@Api(tags = "借款人接口")
@RestController
@RequestMapping("/api/borrower")
public class BorrowerController {

	@Autowired
	private BorrowerService borrowerService;

	@ApiOperation(value = "借款人列表")
	@GetMapping("/list")
	public List<Borrower> listAll(){
		return borrowerService.list();
	}
}

